/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package data.model;

import java.util.List;

/**
 *
 * @author zhenia
 */
public class Airline {

    String id;
    String name;
    String country;
    double rating;
    List<Airplane> airplanes;

    public Airline() {
    }

    public Airline(String id, String name, String country, double rating) {
        this.id = id;
        this.name = name;
        this.country = country;
        this.rating = rating;
    }

    public Airline(String id, String name, String country, double rating, List<Airplane> airplanes) {
        this.id = id;
        this.name = name;
        this.country = country;
        this.rating = rating;
        this.airplanes = airplanes;
    }

    public List<Airplane> getAirplanes() {
        return airplanes;
    }

    public void setAirplanes(List<Airplane> airplanes) {
        this.airplanes = airplanes;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getRating() {
        return rating;
    }

    public void setRating(double rating) {
        this.rating = rating;
    }

    @Override
    public String toString() {
        return "Airline{" + "id=" + id + ", name=" + name + ", country=" + country + ", rating=" + rating + ", airplanes=" + airplanes + '}';
    }
}
